package HomeWork1;

public class Fish extends Animal implements Swim {
    public Fish(){

    }
    public Fish(String name, int age, String color){
        super(name, age, color);
    }

    @Override
    public void eat() {
        System.out.println(name+","+age+","+color+"鱼吃鸡");
    }

    @Override
    public void swim() {
        System.out.println(name+","+age+","+color+"鱼游泳");
    }
}
